<template>
  <div class="drag-modal">
    <div class="drag-contain beauty-scroll">
      <slot name="fieldConfig"></slot>
    </div>
    <div class="confirm-btn">
      <a-button class="mr10" @click="handleCancel">取消</a-button>
      <a-button type="primary" @click="handleConfirm">确认</a-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SettingModal',
  data () {
    return {
    }
  },
  props: {

  },
  computed: {
  },
  components: {
  },
  methods: {
    handleCancel() {
      this.$emit('onCancel', false)
    },
    handleConfirm() {
      this.$emit('onConfirm', false)
    }
  }
}
</script>

<style lang="less" scoped>
.drag-modal {
  .confirm-btn {
    margin-top: 10px;
    text-align: right;
  }

  .drag-contain {
    height: 300px;
    overflow-y: scroll;
    padding-right: 10px;
  }

  ::-webkit-scrollbar {
    width: 2px;
    height: 4px;
  }

  ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    background: rgba(172, 172, 175, 0.6);
  }

  ::-webkit-scrollbar-thumb {
    background-color: #6e6e6e;
  }
}
</style>
